package com.vichat.res.entity;


import javax.persistence.*;
import java.util.Date;

/***************
 *author: autogen
 *version: 2018-12-11 16:41:08.203
 */
@Entity
@Table(name = "room_mic_record_d_log", catalog = "resdb")
public class RoomMicRecordDLog implements java.io.Serializable {

    private static final long serialVersionUID = 1L;


    public static final String TABLE = "room_mic_record_d_log";

    /** */
    public static final String ALIAS_ID = "id";
    /** */
    public static final String ALIAS_UID = "uid";
    /** */
    public static final String ALIAS_RID = "rid";
    /** */
    public static final String ALIAS_PARTY_ID = "party_id";
    /**
     * 开始时间
     */
    public static final String ALIAS_START_TIME = "start_time";
    /**
     * 结束时间
     */
    public static final String ALIAS_END_TIME = "end_time";


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public java.lang.Long id;

    @Column(name = "uid")
    public java.lang.Long uid;

    @Column(name = "rid")
    public java.lang.Long rid;

    @Column(name = "party_id")
    public java.lang.Long partyId;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "start_time")
    public java.util.Date startTime;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "end_time")
    public java.util.Date endTime;


    public java.lang.Long getId() {
        return this.id;
    }

    public void setId(java.lang.Long value) {
        this.id = value;
    }

    public java.lang.Long getUid() {
        return this.uid;
    }

    public void setUid(java.lang.Long value) {
        this.uid = value;
    }

    public java.lang.Long getRid() {
        return this.rid;
    }

    public void setRid(java.lang.Long value) {
        this.rid = value;
    }

    public java.lang.Long getPartyId() {
        return this.partyId;
    }

    public void setPartyId(java.lang.Long value) {
        this.partyId = value;
    }

    public java.util.Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(java.util.Date value) {
        this.startTime = value;
    }

    public java.util.Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(java.util.Date value) {
        this.endTime = value;
    }


    public RoomMicRecordDLog() {
    }

    public RoomMicRecordDLog(boolean qryflag) {
        if (qryflag) {
            this.id = null;
            this.uid = null;
            this.rid = null;
            this.partyId = null;
            this.startTime = null;
            this.endTime = null;
        }
    }


    public RoomMicRecordDLog(
            java.lang.Long inId,
            java.lang.Long inUid,
            java.lang.Long inRid,
            java.lang.Long inPartyId,
            java.util.Date inStartTime,
            java.util.Date inEndTime
    ) {
        super();
        this.id = inId;
        this.uid = inUid;
        this.rid = inRid;
        this.partyId = inPartyId;
        this.startTime = inStartTime;
        this.endTime = inEndTime;
    }


    @Transient
    private Date queryDate;
    public Date getQueryDate() {
        return queryDate;
    }

    public void setQueryDate(Date queryDate) {
        this.queryDate = queryDate;
    }

    @Transient
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Transient
    private String roomName;

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }
}

